package com.shuangti;

public class Test04 {
    public static void main(String[] args) {
        System.out.println("输出数字1527的每一位数字");
        int a=1527%10;
        System.out.println("个位"+a);
        int b=(1527/10)%10;
        System.out.println("十位"+b);
        int c=((1527/100)%10);
        System.out.println("百位"+c);
        int d=(1527/1000);
        System.out.println("千位"+d);


    }
}
